From: Jonas Dreßler Date: Sat, 9 Apr 2022 22:44:01 +0000 (+0200) Subject: appDisplay: Remove pan gesture from FolderView X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~393^2^2~65 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4920cf1eb69ffffb1b64b1ceee3f7b7bf2675d2a;p=gnome-shell.git appDisplay: Remove pan gesture from FolderView The FolderView is a subclass of BaseAppView, which already has a full-blown SwipeTracker attached to it. So no need to add another PanGesture on top, the SwipeTracker will handle it for us. Part-of: --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 2535f2ee8..17afb899d 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -2132,10 +2132,6 @@ class FolderView extends BaseAppView { this.add_child(this._box); - let action = new Clutter.PanAction({ interpolate: true }); - action.connect('pan', this._onPan.bind(this)); - this._scrollView.add_action(action); - this._deletingFolder = false; this._apps = []; this._redisplay(); @@ -2195,13 +2191,6 @@ class FolderView extends BaseAppView { return icon; } - _onPan(action) { - let [dist_, dx_, dy] = action.get_motion_delta(0); - let adjustment = this._scrollView.vscroll.adjustment; - adjustment.value -= (dy / this._scrollView.height) * adjustment.page_size; - return false; - } - _loadApps() { this._apps = []; const excludedApps = this._folder.get_strv('excluded-apps');